package com.zy.design.factory;

/**
 * @author hugx
 * @create 2018-10-24 11:58
 */
public class MilkTest {
    public static void main(String[] args) {
        System.err.println("============================");

        AbstractMilkFactory factory=new DefaultMilkFactory();

        System.out.println(factory.getGuangMinMilkProduct().getName());
        System.out.println(factory.getMunLiMilkProduct().getName());
        System.out.println(factory.getYiLiMilkProduct().getName());

        System.err.println("------------------------------");
    }
}
